home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet multimedia / Linux LiveCD / GeeXboX 1.0 EN / geexbox-1.0-en.i386.iso / GEEXBOX / usr / share / alsa / cards / VIA8237.conf < prev    next >
Encoding:
Text File  |  2006-06-21  |  2.6 KB  |  199 lines

  1. #
  2. # Configuration for the VIA8237 chip with 4/6 multi-channel support
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. VIA8237.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14.     device 0
  15. }    
  16.  
  17. # default with softvol/dsnoop
  18. # VIA8237 supports multi-playback
  19. VIA8237.pcm.default {
  20.     @args [ CARD ]
  21.     @args.CARD {
  22.         type string
  23.     }
  24.     type asym
  25.     playback.pcm {
  26.         type plug
  27.         slave.pcm {
  28.             type softvol
  29.             slave.pcm {
  30.                 type hw
  31.                 card $CARD
  32.                 device 0
  33.             }
  34.             control {
  35.                 name "PCM Playback Volume"
  36.                 card $CARD
  37.             }
  38.         }
  39.     }
  40.     capture.pcm {
  41.         type plug
  42.         slave.pcm {
  43.             @func concat
  44.             strings [ "dsnoop:" $CARD ]
  45.         }
  46.     }
  47. }
  48.  
  49. <confdir:pcm/surround40.conf>
  50.  
  51. VIA8237.pcm.surround40.0 {
  52.     @args [ CARD ]
  53.     @args.CARD {
  54.         type string
  55.     }
  56.     type hooks
  57.     slave.pcm {
  58.         type hw
  59.         card $CARD
  60.         device 1
  61.         channels 4
  62.     }
  63.     hooks.0 {
  64.         type ctl_elems
  65.         hook_args [
  66.             {
  67.                 name "Channel Mode"
  68.                 device 0
  69.                 preserve true
  70.                 value "4ch"
  71.                 lock true
  72.                 optional true
  73.             }
  74.             {
  75.                 name "Surround Down Mix"
  76.                 device 0
  77.                 preserve true
  78.                 value off
  79.                 lock true
  80.                 optional true
  81.             }
  82.         ]
  83.     }
  84. }
  85.  
  86. <confdir:pcm/surround41.conf>
  87. <confdir:pcm/surround50.conf>
  88. <confdir:pcm/surround51.conf>
  89.  
  90. VIA8237.pcm.surround51.0 {
  91.     @args [ CARD ]
  92.     @args.CARD {
  93.         type string
  94.     }
  95.     type route
  96.     ttable.0.0 1
  97.     ttable.1.1 1
  98.     ttable.2.4 1
  99.     ttable.3.5 1
  100.     ttable.4.2 1
  101.     ttable.5.3 1
  102.     slave.pcm {
  103.         type hooks
  104.         slave.pcm {
  105.             type hw
  106.             card $CARD
  107.             device 1
  108.             channels 6
  109.         }
  110.         hooks.0 {
  111.             type ctl_elems
  112.             hook_args [
  113.                 {
  114.                     name "Channel Mode"
  115.                     device 0
  116.                     preserve true
  117.                     value "6ch"
  118.                     lock true
  119.                     optional true
  120.                 }
  121.                 {
  122.                     name "Surround Down Mix"
  123.                     device 0
  124.                     preserve true
  125.                     value off
  126.                     lock true
  127.                     optional true
  128.                 }
  129.                 {
  130.                     name "Center/LFE Down Mix"
  131.                     device 0
  132.                     preserve true
  133.                     value off
  134.                     lock true
  135.                     optional true
  136.                 }
  137.             ]
  138.         }
  139.     }
  140.     slave.channels 6
  141. }
  142.  
  143. <confdir:pcm/iec958.conf>
  144.  
  145. VIA8237.pcm.iec958.0 {
  146.     @args [ CARD AES0 AES1 AES2 AES3 ]
  147.     @args.CARD {
  148.         type string
  149.     }
  150.     @args.AES0 {
  151.         type integer
  152.     }
  153.     @args.AES1 {
  154.         type integer
  155.     }
  156.     @args.AES2 {
  157.         type integer
  158.     }
  159.     @args.AES3 {
  160.         type integer
  161.     }
  162.     type hooks
  163.     slave.pcm {
  164.         type hw
  165.         card $CARD
  166.         device 0
  167.         subdevice 3
  168.     }
  169.     hooks.0 {
  170.         type ctl_elems
  171.         hook_args [
  172.             {
  173.                 name "IEC958 Playback AC97-SPSA"
  174.                 lock true
  175.                 preserve true
  176.                 value 3
  177.             }
  178.             {
  179.                 name "IEC958 Playback Default"
  180.                 lock true
  181.                 preserve true
  182.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  183.             }
  184.             {
  185.                 name "IEC958 Playback Switch"
  186.                 lock true
  187.                 preserve true
  188.                 value true
  189.             }
  190.             {
  191.                 name "IEC958 Output Switch"
  192.                 lock true
  193.                 preserve true
  194.                 value true
  195.             }
  196.         ]
  197.     }
  198. }
  199.